﻿using System.Runtime.Serialization;

namespace ServiceCore.Entity.Core
{
    [Serializable]
    [DataContract]
    public class PageParam<TRequest, TReponse>: BaseParam<TRequest, TReponse>
    {
        /// <summary>
        /// 关键字
        /// </summary>
        [DataMember]
        public string Keywords { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        [DataMember]
        public string BeginTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [DataMember]
        public string EndTime { get; set; }

        /// <summary>
        /// 第几页
        /// </summary>
        [DataMember]
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 每页多少行
        /// </summary>
        [DataMember]
        public int PageSize { get; set; } = 2000;
        /// <summary>
        /// 总数
        /// </summary>
        [DataMember]
        public int RecordTotal { get; set; } = 1;

    }
}
